package com.soooft.tickey.service;

import com.soooft.tickey.po.User;
import com.soooft.tickey.vo.UserVO;

/**
 * @description
 * @author: Fanxl
 * @date: Created in 2017/9/18 10:22
 */
public interface UserService {

    UserVO getOperator(String userId);
    /**
     * 根据code查询用户
     * @param code
     * @return Operator
     */
    User getByCode(String code);

    /**
     * 根据OpenId查找用户
     * @param openId
     * @return Operator
     */
    User getByOpenId(String openId);

    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    User getById(String id);

    boolean save(User user);

    boolean update(User user);
}
